import {adminUrl} from "@/utils/baseUrl.js"
import request from '@/utils/request'

// 创建信息异动记录
export function createStudentChangeLog(data) {
  return request({
    url: adminUrl + '/collegebase/student-change-log/create',
    method: 'post',
    data: data
  })
}

// 更新信息异动记录
export function updateStudentChangeLog(data) {
  return request({
    url: adminUrl + '/collegebase/student-change-log/update',
    method: 'put',
    data: data
  })
}

// 删除信息异动记录
export function deleteStudentChangeLog(id) {
  return request({
    url: adminUrl + '/collegebase/student-change-log/delete?id=' + id,
    method: 'delete'
  })
}

// 获得信息异动记录
export function getStudentChangeLog(id) {
  return request({
    url: adminUrl + '/collegebase/student-change-log/get?id=' + id,
    method: 'get'
  })
}

// 获得信息异动记录分页
export function getStudentChangeLogPage(query) {
  return request({
    url: adminUrl + '/collegebase/student-change-log/page',
    method: 'get',
    params: query
  })
}

// 导出信息异动记录 Excel
export function exportStudentChangeLogExcel(query) {
  return request({
    url: adminUrl + '/collegebase/student-change-log/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
